package pcgen.CharacterViewer.widgets;

import android.content.Context;
import android.graphics.Paint;
import android.graphics.Paint.Style;
import android.util.AttributeSet;

import pcgen.android.widget.TransparentPanel;

public class BorderPanel extends TransparentPanel
{
	public BorderPanel(Context context, AttributeSet attrs) 
	{
		super(context, attrs);
	}

	public BorderPanel(Context context) 
	{
		super(context);
	}

	@Override
	protected void init() 
	{
		Paint paint = new Paint();
		paint.setARGB(255, 75, 75, 75); //gray
		paint.setAntiAlias(true);
		setPaintInner(paint);

		paint = new Paint();
		paint.setARGB(255, 255, 255, 255);
		paint.setAntiAlias(true);
		paint.setStyle(Style.STROKE);
		paint.setStrokeWidth(2);
		setPaintBorder(paint);
	}
}
